Optimal. Leaf size=179 \[ \frac {(d \tan (e+f x))^{n+1} (a+b \tan (e+f x))^m \left (\frac {b \tan (e+f x)}{a}+1\right )^{-m} F_1\left (n+1;-m,1;n+2;-\frac {b \tan (e+f x)}{a},-i \tan (e+f x)\right )}{2 d f (n+1)}+\frac {(d \tan (e+f x))^{n+1} (a+b \tan (e+f x))^m \left (\frac {b \tan (e+f x)}{a}+1\right )^{-m} F_1\left (n+1;-m,1;n+2;-\frac {b \tan (e+f x)}{a},i \tan (e+f x)\right )}{2 d f (n+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 179, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3575, 912, 135, 133} \[ \frac {(d \tan (e+f x))^{n+1} (a+b \tan (e+f x))^m \left (\frac {b \tan (e+f x)}{a}+1\right )^{-m} F_1\left (n+1;-m,1;n+2;-\frac {b \tan (e+f x)}{a},-i \tan (e+f x)\right )}{2 d f (n+1)}+\frac {(d \tan (e+f x))^{n+1} (a+b \tan (e+f x))^m \left (\frac {b \tan (e+f x)}{a}+1\right )^{-m} F_1\left (n+1;-m,1;n+2;-\frac {b \tan (e+f x)}{a},i \tan (e+f x)\right )}{2 d f (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 133
Rule 135
Rule 912
Rule 3575
Rubi steps
\begin {align*} \int (d \tan (e+f x))^n (a+b \tan (e+f x))^m \, dx &=\frac {\operatorname {Subst}\left (\int \frac {(d x)^n (a+b x)^m}{1+x^2} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {\operatorname {Subst}\left (\int \left (\frac {i (d x)^n (a+b x)^m}{2 (i-x)}+\frac {i (d x)^n (a+b x)^m}{2 (i+x)}\right ) \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {i \operatorname {Subst}\left (\int \frac {(d x)^n (a+b x)^m}{i-x} \, dx,x,\tan (e+f x)\right )}{2 f}+\frac {i \operatorname {Subst}\left (\int \frac {(d x)^n (a+b x)^m}{i+x} \, dx,x,\tan (e+f x)\right )}{2 f}\\ &=\frac {\left (i (a+b \tan (e+f x))^m \left (1+\frac {b \tan (e+f x)}{a}\right )^{-m}\right ) \operatorname {Subst}\left (\int \frac {(d x)^n \left (1+\frac {b x}{a}\right )^m}{i-x} \, dx,x,\tan (e+f x)\right )}{2 f}+\frac {\left (i (a+b \tan (e+f x))^m \left (1+\frac {b \tan (e+f x)}{a}\right )^{-m}\right ) \operatorname {Subst}\left (\int \frac {(d x)^n \left (1+\frac {b x}{a}\right )^m}{i+x} \, dx,x,\tan (e+f x)\right )}{2 f}\\ &=\frac {F_1\left (1+n;-m,1;2+n;-\frac {b \tan (e+f x)}{a},-i \tan (e+f x)\right ) (d \tan (e+f x))^{1+n} (a+b \tan (e+f x))^m \left (1+\frac {b \tan (e+f x)}{a}\right )^{-m}}{2 d f (1+n)}+\frac {F_1\left (1+n;-m,1;2+n;-\frac {b \tan (e+f x)}{a},i \tan (e+f x)\right ) (d \tan (e+f x))^{1+n} (a+b \tan (e+f x))^m \left (1+\frac {b \tan (e+f x)}{a}\right )^{-m}}{2 d f (1+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 1.51, size = 0, normalized size = 0.00 \[ \int (d \tan (e+f x))^n (a+b \tan (e+f x))^m \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.78, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (b \tan \left (f x + e\right ) + a\right )}^{m} \left (d \tan \left (f x + e\right )\right )^{n}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \tan \left (f x + e\right ) + a\right )}^{m} \left (d \tan \left (f x + e\right )\right )^{n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.87, size = 0, normalized size = 0.00 \[ \int \left (d \tan \left (f x +e \right )\right )^{n} \left (a +b \tan \left (f x +e \right )\right )^{m}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \tan \left (f x + e\right ) + a\right )}^{m} \left (d \tan \left (f x + e\right )\right )^{n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\left (d\,\mathrm {tan}\left (e+f\,x\right )\right )}^n\,{\left (a+b\,\mathrm {tan}\left (e+f\,x\right )\right )}^m \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (d \tan {\left (e + f x \right )}\right )^{n} \left (a + b \tan {\left (e + f x \right )}\right )^{m}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________